package com.smw.service.imp;


import com.smw.dao.UserDao;
import com.smw.pojo.User;
import com.smw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class UserServiceImp implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User findPwdByName(String userName) {
        User u=userDao.findPwdByName(userName);
        return u;

    }

    @Override
    public Set<String> findRole(String userName) {
        Set<String>u=userDao.findRole(userName);
        return u;
    }

    @Override
    public String findUserNameByName(String userName) {
        String u=userDao.findUserNameByName(userName);
        return u;
    }

    @Override
    public String findEmailByUserName(String userName) {
        String email=userDao.findEmailByUserName(userName);
        return email;
    }
}
